﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DtoFw.Query
{
    public class DicBaseDto : BaseOperator
    {
        public long ParentId { get; set; } = 0;
        public bool ChildNode { get; set; } = false;
        public bool Status { get; set; } = true;
        public string Name { get; set; }
        /// <summary>
        /// 字典code
        /// </summary>
        public string Code { get; set; }

        public string Remark { get; set; }
    }

    /// <summary>
    /// 新增
    /// </summary>
    public class DicAddDto : DicBaseDto
    {

    }
    /// <summary>
    /// 编辑
    /// </summary>
    public class DicUpdateDto : DicBaseDto
    {
        public long Id { get; set; }
    }
    /// <summary>
    /// 编辑
    /// </summary>
    public class DicDto
    {
        public long Id { get; set; }
        public DateTime CreateDate { get; set; }
        public string Creator { get; set; }

        public long ParentId { get; set; } = 0;
        public bool ChildNode { get; set; } = false;
        public bool Status { get; set; } = true;
        public string Name { get; set; }
        public string Code { get; set; }
        public string Remark { get; set; }
    }

    public class DicQueryDto :BaseQuery
    {
        public string DicName { get; set; }
        public string DicCode { get; set; }
        public long ParentId { get; set; }
    }
}
